<template>
  <tiny-tabs v-model="activeName" tab-style="card" position="left">
    <tiny-tab-item name="user-info">
      <template #title>
        <div>
          <id-card theme="outline" size="18" fill="#333" :strokeWidth="2"/>
          <span style="margin-left:8px;">个人资料</span>
        </div>
      </template>
      <div class="main">
        <UserInfo :user-id="userId"/>
      </div>
    </tiny-tab-item>
    <tiny-tab-item name="account-setting">
      <template #title>
        <div>
          <icon-user theme="outline" size="18" fill="#333" :strokeWidth="2"/>
          <span style="margin-left:8px;">账号设置</span>
        </div>
      </template>
      <div class="main">
        <UpdatePassword />
      </div>
    </tiny-tab-item>
    <tiny-tab-item name="tag-manage">
      <template #title>
        <div>
          <bookmark-one theme="outline" size="18" fill="#333" :strokeWidth="2"/>
          <span style="margin-left:8px;">标签管理</span>
        </div>
      </template>
      <div class="main">
        <UserTag />
      </div>
    </tiny-tab-item>
  </tiny-tabs>
</template>

<script setup>
import {useRoute} from "vue-router";
import request from "../utils/request.js";
import { Tabs as TinyTabs, TabItem as TinyTabItem} from '@opentiny/vue'
import {ref} from 'vue'
import {IdCard,User as IconUser, BookmarkOne} from '@icon-park/vue-next'
import UserInfo from "../components/UserInfo.vue";
import UpdatePassword from "../components/UpdatePassword.vue";
import UserTag from "../components/UserTag.vue";



document.title = '个人'
const route = useRoute()
const userId = Number(route.params.userId)
const activeName = 'user-info'


</script>

<style lang="less" scoped>
.container{

}


</style>
